package org.jeecg.modules.demo.outstoragemain.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.outstoragemain.entity.OutStorageMain;
import org.jeecg.modules.demo.outstoragemain.mapper.OutStorageMainMapper;
import org.jeecg.modules.demo.outstoragemain.service.IOutStorageMainService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date: 2022-02-13s
 * @Version: V1.0
 */
@Service
public class OutStorageMainServiceImpl extends ServiceImpl<OutStorageMainMapper, OutStorageMain> implements IOutStorageMainService {
    @Resource
    private OutStorageMainMapper outStorageMainMapper;

    // 根据订单id查询
    @Override
    public OutStorageMain getByBillNo(String billNo) {
        return outStorageMainMapper.getByBillNo(billNo);
    }

    // 查询出库单列表
    @Override
    public IPage<OutStorageMain> searchList(Page<OutStorageMain> page,
                                            String storeId, String billNo, String outType,
                                            String beginTime, String endTime, String orderby) {
        return outStorageMainMapper.searchList(page, storeId, billNo, outType, beginTime, endTime, orderby);
    }
}
